﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace CCPSIP
{
  public class PersonKit
  {
    private static Dictionary<string, string> HQDeptCNames = new Dictionary<string, string>() {
      { "A1", "管理部" },
      { "ES", "環安部" },
      { "FN", "財務部" },
      { "HR", "人資部" },
      { "IN", "國外部" },
      { "MI", "資訊中心" },
      { "PH", "採購部" },
      { "RD", "研發部" },
      { "SL", "營業部" },
      { "TD", "技術部" },
      { "Z1", "外派"}
    };


    /// <summary>
    /// 取得總公司部門中文名稱
    /// </summary>
    /// <param name="DEPT_NO_MAIN">部門代碼共二碼</param>
    /// <returns>部門中文名稱</returns>
    public static string getDeptCName(string DEPT_NO_MAIN) {
      if (HQDeptCNames.ContainsKey(DEPT_NO_MAIN))
        return HQDeptCNames[DEPT_NO_MAIN];
      else
        return DEPT_NO_MAIN;
    }

  }
}
